<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>我的登录页面</title>
<meta charset="utf-8" />
<script type="text/javascript">
	function refreshCode() {
		//取出tr元素对象 
		var element = document.getElementById("imageCode");
		element.src = "${base}/code/image?param=" + new Date();
	}
</script>
</head>


<body>

     <h1 style="color:red">错误信息： ${errorMsg !}</h1>

     <br>
	<form action="${base}/authentication/form" method="post">
		<label for="username">用户名</label>: <input type="text"id="username" name="username" autofocus="autofocus" /> <br />
		<label for="password">密码</label>: <input type="password" id="password" name="password" /> <br /> 
		<label for="password">验证码</label>: <input type="text" name="imageCode">
		<img id="imageCode" src="${base}/code/image" onclick="refreshCode()">
          <br>
		记住我: <input type="checkbox" name="remember-me" value="true"> 
		 <br>
		<input type="submit" value="登陆" />    <a href="${base}/register/index">注册</a>
	</form>
	<p>
		<a href="/index">返回首页</a>
	</p>
</body>
</html>
